package com.tuanzi.loan.web.lazy.statistics;

import com.tuanzi.loan.business.service.statistics.WholeProcessIndependentService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.WholeProcessIndependentsearchRequest;
import com.tuanzi.loan.vo.response.statistics.WholeProcessIndependentsearchResponse;
import org.springframework.data.domain.Page;

public class WholeProcessIndependentLazyDataModel  extends BaseLazyDataModel<WholeProcessIndependentsearchRequest,WholeProcessIndependentsearchResponse> {

    private WholeProcessIndependentService service = SpringContextHolder.getBean(WholeProcessIndependentService.class);

    public WholeProcessIndependentLazyDataModel(WholeProcessIndependentsearchRequest request) {
        super(request);
    }

    @Override
    protected Page<WholeProcessIndependentsearchResponse> doLoad(PageSearcher<WholeProcessIndependentsearchRequest> pageSearcher) {
        return service.list(pageSearcher);
    }
}
